Skip to content

Conversation

StanFromIreland
Copy link
Member

@StanFromIreland StanFromIreland commented Oct 9, 2025

Also included, converting links to https and wrapping a long line.


📚 Documentation preview 📚: https://cpython-previews--139835.org.readthedocs.build/

Copy link
Member

@AA-Turner AA-Turner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these constants intended to be for public use? Especially with older modules, the underscore prefix convention hasn't been consistently used.

C.f. calendar for similar discussion about what we choose to document.

A

zlib's functions have many options and often need to be used in a particular
order. This documentation doesn't attempt to cover all of the permutations;
consult the zlib manual at http://www.zlib.net/manual.html for authoritative
consult the `zlib manual <https://www.zlib.net/manual.html>`_ for authoritative
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note, bare links in source text are recognised by reST (unlike markdown), so this change is optional.

Suggested change
consult the `zlib manual <https://www.zlib.net/manual.html>`_ for authoritative
consult the `zlib manual <https://www.zlib.net/manual.html>`__ for authoritative

@StanFromIreland
Copy link
Member Author

Are these constants intended to be for public use? Especially with older modules, the underscore prefix convention hasn't been consistently used.

See as they have references in the text (e.g., the compression levels), I would assume that was the intention.

Co-authored-by: Hugo van Kemenade <[email protected]>
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I just left a minor suggestion.

@StanFromIreland
Copy link
Member Author

Thanks for the reviews Victor!

Co-authored-by: Victor Stinner <[email protected]>
@vstinner vstinner added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Oct 10, 2025
@vstinner vstinner enabled auto-merge (squash) October 10, 2025 15:32
@vstinner vstinner merged commit c7f1da9 into python:main Oct 10, 2025
31 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Oct 10, 2025
@miss-islington-app
Copy link

Thanks @StanFromIreland for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 10, 2025
…rnings (pythonGH-139835)

(cherry picked from commit c7f1da97eb4639a17fb01ef122155bab2f262a34)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
@miss-islington-app
Copy link

Sorry, @StanFromIreland and @vstinner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker c7f1da97eb4639a17fb01ef122155bab2f262a34 3.13

@bedevere-app
Copy link

bedevere-app bot commented Oct 10, 2025

GH-139910 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Oct 10, 2025
@StanFromIreland StanFromIreland deleted the zlib-warnings branch October 10, 2025 15:36
vstinner added a commit that referenced this pull request Oct 10, 2025
…arnings (GH-139835) (#139910)

gh-101100: Document `zlib` public constants to fix reference warnings (GH-139835)
(cherry picked from commit c7f1da9)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
StanFromIreland added a commit to StanFromIreland/cpython that referenced this pull request Oct 10, 2025
…rnings (python#139835)

Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
(cherry picked from commit c7f1da9)
StanFromIreland added a commit to StanFromIreland/cpython that referenced this pull request Oct 10, 2025
…ence warnings (pythonGH-139835)

(cherry picked from commit c7f1da9)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Oct 10, 2025

GH-139912 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Oct 10, 2025
vstinner added a commit that referenced this pull request Oct 10, 2025
…nings (GH-139835) (#139912)

* gh-101100: Document `zlib` public constants to fix reference warnings (#139835)

Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
(cherry picked from commit c7f1da9)

* [3.13] gh-101100: Document `zlib` public constants to fix reference warnings (GH-139835)
(cherry picked from commit c7f1da9)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>

---------

Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants